<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yangyaru
  Date: 2022/4/11
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/admin/news/add" method="post">

    <p>新闻类型：<select name="cid">
        <c:forEach items="${newsClasses}" var="newsClass">
            <option value="${newsClass.id}">${newsClass.name}</option>
        </c:forEach>
    </select>
    </p>
    <p>时间：<input type="text" name="time" ></p>
    <p>标题：<input type="text" name="name" ></p>
    <p>来源：<input type="text" name="source"  ></p>
    <p>作者：<input type="text" name="author" ></p>
    <p>浏览量：<input type="text" name="views" ></p>
    <p>文章内容：<textarea name="desc"></textarea></p>
    <button>提交</button>
</form>

</body>
</html>
